package io.renren.common.utils;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Constants {

    //获得Spring中定义的Bean实例
    public static final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
            new String[] { "classpath:spring-config/applicationContext.xml","classpath:spring-config/applicationContext-[main].xml" });
    /**
     * 空数据返回码
     */
    public static final int EMPTYDATACODE=711;
    /**
     * ETC交易上传控制参数
     */
    public static final int CONTROL_ETCTRANSACTIONUPLOAD_PARAM = 700;
    /**
     * ETC交易下载控制参数
     */
    public static final int CONTROL_ETCTRANSACTIONDOWN_PARAM = 701;
    /**
     * ETC记账上传控制参数
     */
    public static final int CONTROL_ETCAUUPLOAD_PARAM = 702;
    /**
     * ETC记账下载控制参数
     */
    public static final int CONTROL_ETCAUDOWN_PARAM = 703;
    /**
     * 争议结果下载控制参数
     */
    public static final int CONTROL_ETCDDDOWN_PARAM = 704;
    /**
     * ETC清算文件下载控制参数
     */
    public static final int CONTROL_ETCCIDDOWN_PARAM = 705;
    /**
     * 退费交易下载控制参数
     */
    public static final int CONTROL_TCSREFDDOWN_PARAM = 706;
    /**
     * 补交交易下载控制参数
     */
    public static final int CONTROL_TCSRESDDOWN_PARAM = 707;
    /**
     * 退费补交结算文件下载控制参数
     */
    public static final int CONTROL_TCSCIDDOWN_PARAM = 708;
    /**
     * 停车场交易上传控制参数
     */
    public static final int CONTROL_PARKTRANSACTIONUPLOAD_PARAM = 709;
    /**
     * 加油站交易上传控制参数
     */
    public static final int CONTROL_GASSTATIONTRANSACTIONUPLOAD_PARAM = 710;
    /**
     * 服务器交易上传控制参数
     */
    public static final int CONTROL_SERVICEAREATRANSACTIONUPLOAD_PARAM = 711;
    /**
     * 拓展交易下载控制参数
     */
    public static final int CONTROL_EXPANDSERVICETRANSACTIONDOWN_PARAM = 712;
    /**
     * 拓展交易记账上传控制参数
     */
    public static final int CONTROL_EXPANDACCOUNTTRADEUPLOAD_PARAM = 713;
    /**
     * 拓展交易记账下载控制参数
     */
    public static final int CONTROL_EXPANDSERVICEACCOUNTTRANSACTIONDOWN_PARAM = 714;
    /**
     * 拓展交易争议结果下载控制参数
     */
    public static final int CONTROL_EXPANDDISPUTEDETAILDOWN_PARAM = 715;
    /**
     * 拓展服务清算文件下载控制参数
     */
    public static final int CONTROL_EXPANDCLEARDOWN_PARAM = 716;
    /**
     * 省内交易发票基础数据上传控制参数
     */
    public static final int CONTROL_BILLTRANSUPLOAD_PARAM = 717;
    /**
     * 发票基础数据上传控制参数
     */
    public static final int CONTROL_BILLUPLOAD_PARAM = 718;

    /**
     * 异常版本处理任务控制参数
     */
    public static final int CONTROL_ERRORTASK_PARAM = 719;


    /**
     * 文件下载时间间隔类型  15分钟
     */
    public static final int DOWNLOAD_FILE_15M = 1;
    /**
     * 文件下载时间间隔类型 20分钟
     */
    public static final int DOWNLOAD_FILE_20M = 2;
    /**
     * 文件下载时间间隔类型 1小时
     */
    public static final int DOWNLOAD_FILE_1H = 3;
    /**
     * 文件下载时间间隔类型 1天
     */
    public static final int DOWNLOAD_FILE_1D = 4;

    /**
     * ETC交易下载消息类型
     */
    public static final int DOWNLOAD_TYPE_ETCTRANSACTION = 1;
    /**
     * ETC记账交易下载消息类型
     */
    public static final int DOWNLOAD_TYPE_ETCACCOUNTTRADEDOWNLOAD = 2;
    /**
     * 发行方ETC争议结果下载消息类型
     */
    public static final int DOWNLOAD_TYPE_ETCDISPUTEDOWNLOAD_ISSUEID = 4;
    /**
     * 服务方ETC争议结果下载消息类型
     */
    public static final int DOWNLOAD_TYPE_ETCDISPUTEDOWNLOAD = 5;
    /**
     * 发行方ETC清分结算下载消息类型
     */
    public static final int DOWNLOAD_TYPE_ETCCLEARINGINFODOWN_ISSUEID = 6;
    /**
     * 退费交易下载消息类型（发行方）
     */
    public static final int DOWNLOAD_TYPE_REFOUNDDOWNLOAD = 9;
    /**
     * 补交交易下载消息类型（发行方）
     */
    public static final int DOWNLOAD_TYPE_COMPLEMENTDOWNLOAD = 10;
    /**
     * 发行方退费补交结算文件下载消息类型
     * @author WANGYP
     */
    public static final int DOWNLOAD_TYPE_ETCJSDOWNLOAD_ISSUE = 11;
    /**
     * 拓展服务交易下载
     */
    public static final int DOWNLOAD_TYPE_EXPANDTRANSACTION = 12;
    /**
     * 拓展服务记账交易下载消息类型
     */
    public static final int DOWNLOAD_TYPE_EXPANDACCOUNTTRADEDOWNLOAD = 13;
    /**
     * 发行方拓展服务争议结果下载消息类型
     */
    public static final int DOWNLOAD_TYPE_EXPANDDISPUTEDOWNLOAD_ISSUEID = 14;
    /**
     * 拓展服务清算交易下载消息类型(发行方)
     */
    public static final int DOWNLOAD_TYPE_EXPANDISSUERCLEARDOWNLOAD = 15;
    /**
     *  服务方拓展服务争议结果下载消息类型
     */
    public static final int DOWNLOAD_TYPE_EXPANDDISPUTEDOWNLOAD = 16;
    /**
     * 退费交易下载消息类型（服务方）
     */
    public static final int DOWNLOAD_TYPE_REFOUNDSERVICEDOWNLOAD = 17;
    /**
     * 补交交易下载消息类型（服务方）
     */
    public static final int DOWNLOAD_TYPE_COMPLEMENTSERVICEDOWNLOAD = 18;
    /**
     * 服务方ETC清分结算下载消息类型
     */
    public static final int DOWNLOAD_TYPE_ETCCLEARINGINFODOWN = 19;
    /**
     * 服务方退费补交结算文件下载消息类型
     *  @author WANGYP
     */
    public static final int DOWNLOAD_TYPE_ETCJSDOWNLOAD = 20;
    /**
     *  拓展服务清算交易下载消息类型
     */
    public static final int DOWNLOAD_TYPE_EXPANDCLEARDOWNLOAD = 21;



    /**
     * ETC交易下载文件路径
     */
    public static final String DOWNLOAD_PATH_ETCTRANSACTION = Config.downloadpath+"\\download\\ETCTransaction\\";
    /**
     * ETC记账交易下载文件路径
     */
    public static final String DOWNLOAD_PATH_ETCACCOUNTTRADE = Config.downloadpath+"\\download\\ETCAccounttrade\\";
    /**
     * ETC争议结果下载文件路径
     */
    public static final String DOWNLOAD_PATH_ETCDISPUTE = Config.downloadpath+"\\download\\ETCDispute\\";
    /**
     * 退费交易下载文件路径（发行方）
     */
    public static final String DOWNLOAD_PATH_REFOUND = Config.downloadpath+"\\download\\RefoundTransaction\\";
    /**
     * 退费交易下载文件路径（服务方）
     */
    public static final String DOWNLOAD_PATH_REFOUNDSERVICE = Config.downloadpath+"\\download\\RefoundServiceTransaction\\";
    /**
     * 补交交易下载文件路径（发行方）
     */
    public static final String DOWNLOAD_PATH_COMPLEMENT = Config.downloadpath+"\\download\\ComplementTransaction\\";
    /**
     * 补交交易下载文件路径（服务方）
     */
    public static final String DOWNLOAD_PATH_COMPLEMENTSERVICE = Config.downloadpath+"\\download\\ComplementServiceTransaction\\";
    /**
     * ETC清分结算文件下载文件路径
     */
    public static final String DOWNLOAD_PATH_ETCCLEARING = Config.downloadpath+"\\download\\ETCClearing\\";
    /**
     * 退费补交结算文件下载文件路径
     *  @author WANGYP
     */
    public static final String DOWNLOAD_PATH_ETCJSDOWNLOAD = Config.downloadpath+"\\download\\JSTransaction\\";
    /**
     *  拓展服务交易下载文件路径
     */
    public static final String DOWNLOAD_PATH_EXPANDTRANSACTION = Config.downloadpath+"\\download\\ExpandTransaction\\";
    /**
     * 拓展服务争议结果下载文件路径
     */
    public static final String DOWNLOAD_PATH_EXPANDDISPUTE = Config.downloadpath+"\\download\\ExpandDispute\\";
    /**
     * 拓展服务记账交易下载文件路径
     */
    public static final String DOWNLOAD_PATH_EXPANDACCOUNTTRADE = Config.downloadpath+"\\download\\ExpandAccounttrade\\";
    /**
     * 拓展服务清算交易下载文件路径
     */
    public static final String DOWNLOAD_PATH_EXPANDCLEARDOWN = Config.downloadpath+"\\download\\ExpandClear\\";

    /**
     * 原始etc交易包参数ID
     */
    public static final int MESSAGEID_ETCTRANSACTION=999;
    /**
     * 其他交易包参数ID
     */
    public static final int MESSAGEID_OTHER=998;
    /**
     * 省内发票交易包参数ID
     */
    public static final int MESSAGEID_BILLTRANS=997;
    /**
     * 服务区etc交易包参数ID
     */
    public static final int MESSAGEID_SERVICEAREATRANSACTION=996;
    /**
     * 加油站etc交易包参数ID
     */
    public static final int MESSAGEID_GASSTATIONTRANSACTION=995;
    /**
     * 停车场etc交易包参数ID
     */
    public static final int MESSAGEID_PARKTRANSACTION=994;


    /**
     * ETC交易上文件路径
     */
    public static final String UPLOAD_PATH_EXPANDCLEARDOWN = Config.downloadpath+"\\download\\uploadetc\\";



}
